<div class="row">
    <div class="col-md-4 col-md-offset-4 main">
        <div class="form">

            <h2 class="form-signin-heading" hidden>AMC系统 - 商户端</h2>
            <h3 class="form-signin-heading">注册页面</h3>

            <div class="form-group" ng-class="validate.div.merchantName">
                <label class="control-label">用户名:</label>
                <input class="form-control" ng-model="formInput.merchantName" ng-change="merchantNameChange()" type="text" placeholder="用户名">
                <span ng-class="validate.span.merchantName"></span>
                <p class="help-block">{{validate.help.merchantName}}</p>
            </div>

            <div class="form-group" ng-class="validate.div.password">
                <label class="control-label">密码:</label>
                <input class="form-control" ng-model="formInput.password" ng-change="passwordChange()" type="password" placeholder="密码">
                <span ng-class="validate.span.password"></span>
                <p class="help-block">{{validate.help.password}}</p>
            </div>

            <div class="form-group" ng-class="validate.div.ensurePassword">
                <label class="control-label">确认密码:</label>
                <input class="form-control" ng-model="ensurePassword" ng-change="ensurePasswordChange()" placeholder="确认密码" type="password">
                <span ng-class="validate.span.ensurePassword"></span>
                <p class="help-block">{{validate.help.ensurePassword}}</p>
            </div>

            <div class="form-group" ng-class="validate.div.address">
                <label class="control-label">地址:</label>
                <input class="form-control" ng-model="formInput.address" ng-change="addressChange()" placeholder="地址" type="text">
                <span ng-class="validate.span.address"></span>
                <p class="help-block">{{validate.help.address}}</p>
            </div>

            <!--<div class="form-group">
                <label class="control-label" style="display:none">商户头像:</label>
                <div class="input-append">
                    <form>
                        <input type="file" ng-model="headpic" name="headpic" nv-file-select uploader="headpicUploader">
                    </form>
                </div>

                <label class="control-label" style="display:none">证件照片:</label>
                <div class="input-append">
                    <form>
                        <input type="file" ng-model="idcardpic" name="idcardpic" nv-file-select uploader="idcardpicUploader">
                    </form>
                </div>

                <button ng-click="submitForm()" class="btn btn-lg btn-primary btn-block" id="submit">注册</button>
                <a class="btn btn-lg btn-info btn-block" href="#!/login">返回</a>
            </div>-->

            <div class="form-group">
                <label class="control-label">商户头像:</label>
                <div class="input-group">
                    <input type="text" class="form-control" ng-model="formInput.headPic" placeholder="商户头像" readonly/>
                    <a class="btn btn-info input-group-addon glyphicon glyphicon-search" ng-click="headBrowse()">浏览</a>
                    <a class="btn btn-primary input-group-addon glyphicon glyphicon-upload" ng-click="headUpload()">上传</a>
                </div>
                <input id="headFile" ng-model="formInput.headPic" nv-file-select uploader="headpicUploader" type="file" style="display:none">
                <p class="help-block">图片请不要超过2M</p>
            </div>
            <div class="form-group" ng-hide="headHide">
                <label class="control-label">图片预览:</label>
                <div class="input-group">
                    <img src="{{formInput.headPic}}" width=100px height=80px/>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label">证件照片:</label>
                <div class="input-group">
                    <input type="text" class="form-control" ng-model="formInput.idCardPic" placeholder="证件照片" readonly/>
                    <a class="btn btn-info input-group-addon  glyphicon glyphicon-search" ng-click="idcardBrowse()">浏览</a>
                    <a class="btn btn-primary input-group-addon glyphicon glyphicon-upload" ng-click="idcardUpload()">上传</a>
                </div>
                <input id="idcardFile" ng-model="formInput.idCardPic" nv-file-select uploader="idcardpicUploader" type="file" style="display:none">
                <p class="help-block">图片请不要超过2M</p>
            </div>
            <div class="form-group" ng-hide="idcardHide">
                <label class="control-label">图片预览:</label>
                <div class="input-group">
                    <img src="{{formInput.idCardPic}}" width=100px height=80px/>
                </div>
            </div>

            <button ng-click="submitForm()" class="btn btn-lg btn-primary btn-block">注册</button>
            <a class="btn btn-lg btn-info btn-block" href="#!/login">返回</a>
        </div>

    </div>